<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * country.php
 * @author ranuandra
 *
 * 11 Jun 2012 10:49:51
 *
 * 
 */

class Model_Country extends ORM
{
	protected  $_has_many = array(
							'mstpelamar'	=> array('model' => 'mstpelamar')
						);
	private $_field = array('country_name');
	private $_form = array('country_name' => '');
	
	public $roles = array(
					'country_name' => array(
									array('min_length', array(':value', 0)),
								),
	);
	
	public function getField()
	{
		return $this->_field;
	}
	
	public function getForm()
	{
		return $this->_form;
		
	}
	
	public function create_data($values)
	{
	    return $this->values($values, $this->_field)->create();
	}	
}